﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Diagnostics.EventConsumers
{
	public class PageNotFoundEventConsumer : EventBrokR.IConsumer<ERPStore.Web.Events.PageNotFoundEvent>
	{
		#region IConsumer<PageNotFoundEvent> Members

		public void Handle(Web.Events.PageNotFoundEvent eventMessage)
		{
			var pageNotFound = new Models.PageNotFound();
			pageNotFound.Url = eventMessage.Url;

			Services.SignalSender.Current.SendAsync(pageNotFound);
		}

		#endregion
	}
}
